package com.example.educationalsystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.educationalsystem.entity.Vo.VoteRecordVo;
import com.example.educationalsystem.entity.VoteRecord;
import com.example.educationalsystem.mapper.IVoteRecordMapper;
import com.example.educationalsystem.mapper.IVoteRecordMapper;
import com.example.educationalsystem.service.IVoteRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zpc
 * @since 2022-12-26
 */
@Service
public class VoteRecordServiceImpl extends ServiceImpl<IVoteRecordMapper, VoteRecord> implements IVoteRecordService {
    @Autowired
    private IVoteRecordMapper iVoteRecordMapper;

    @Override
    public List<VoteRecordVo> getAllVoteRecord(){
        return iVoteRecordMapper.getAllVoteRecord();
    }


    @Override
    public Page<VoteRecordVo> getVoteRecordPage(Page<VoteRecordVo> page , Wrapper wrapper)
    {
        return iVoteRecordMapper.getVoteRecordPage(page,wrapper);
    }
}
